// 商品相关的接口
import axios from "@/tool/axios";

// 1.8.1. 商品列表数据
/**
 * 
 * @param {query、pagenum 、pagesize} obj 
 * @returns 
 */

export const getgoods = (obj) => axios.get("goods", {
    params: obj
})
//删除商品
export const delgoods = (id) => axios.delete(`goods${id}`)
//添加商品
export const addgoods = (obj) => axios.post("goods",obj)